#ifndef DL_H_
#define DL_H_
#include "conf.h"

#ifdef __linux__
#include <dlfcn.h>
typedef void* dl_handler;
#define DL_INVALID_HANDLE NULL
#elif _WIN32
#include <windows.h>
typedef HMODULE dl_handler;
#define DL_INVALID_HANDLE NULL
#else
#endif

C_CODE_BEGIN

EXPORT_FUNC dl_handler dl_open( const char* );

EXPORT_FUNC void* dl_find_symbol( dl_handler , const char* );

EXPORT_FUNC void dl_close( dl_handler );


C_CODE_END


#endif // DL_H_